#define _CRT_SECURE_NO_WARNINGS 1

#include "game.h"

int main()
{
	srand((unsigned int)time(NULL));
	int input;
	do
	{
		menu();
		printf("\nplease input 0/1/2:\n");
		scanf("%d", &input);
		switch (input)
		{
		case 0:
			printf("Exit success!\n");
			break;
		case 1:
			game();
			break;
		case 2:
			setRange();
			break;
		default:
			printf("Error input! Please input again!\n");
			break;
		}
	} while (input);


	return 0;
}